package com.jk;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.List;

/**
 * @Author 程旭航
 * @Create 2021/5/19 - 14:33
 * @Description
 */
@Data
@Document(indexName = "lookmovie",type = "movie")
public class MovieBean  implements Serializable {
    @Id
    private  String id;          //主键
    private  Integer movieId;          //主键
    @Field(type = FieldType.Text,analyzer = "ik_smart",searchAnalyzer = "ik_smart")
    private  String  movieName;        //电影名称
    private  Integer movieType;        //电影类型
    private  String director;       //导演名称
    private  String  actor;          //主演名称
    private  String  filmSchedule ;    //影片排期
    private String efilmSchedule; //下映时间
    private  String  img;              //封面
    private  Integer  status;              //上映状态 1.已上映  2.未上映
    private  Double  movieGrade;    // 评分 等级 10分 为满分
    private String moviedate;           //电影时长
    private String synopsis;           //电影简介
    @Field(type = FieldType.Keyword)
    private String moviestate;        //电影国家
    private Integer ticketCount;      //已售票数
    private Integer look;      //想看
    private Integer movieAccruing;  // 累计 票房
    private Integer MovidCountLun; // 评论 数量
    private String directorimg;//导演图片
    private Integer score;//累加字段
    //业务字段
    private String typename;//电影类型
    private Integer page;
    private Integer rows;
    private String roleName; //主演名称
    private String roimg;  //演员照片
    private String portray;//饰演角色
    private String typeids;//批量新增类型
    private String money;//票房
    private String playStartTime;//开始时间
    private String playEndTime;//结束时间
    private String hallname;//影厅名称
    private String movieLanguage;//语言
    private Double moviePrice;//电影价格
    private List<ActorBean> roleList;
    private String typeId;//类型id
    private Integer programId;//id
}
